package com.yao.club.service;

import com.yao.club.entity.request.CommentRequest;
import com.yao.club.entity.result.ResponseEntity;
import com.yao.club.entity.result.ResultEntity;
import com.yao.club.entity.vo.GoodsCommentVO;

public interface GoodsCommentService {
    /**
     * 分页获取商品评论
     */
    ResponseEntity<ResultEntity<GoodsCommentVO>> pageComments(Long goodsId, Integer pageNum, Integer pageSize, String username);

    /**
     * 发布评论
     */
    ResponseEntity<Boolean> addComment(CommentRequest request, String username);

    /**
     * 回复评论
     */
    ResponseEntity<Boolean> replyComment(CommentRequest request, String username);

    /**
     * 点赞/取消点赞评论
     */
    ResponseEntity<Boolean> toggleCommentLike(Long commentId, String username);

    /**
     * 删除评论
     */
    ResponseEntity<Boolean> deleteComment(Long commentId, String username);
} 